package com.myh.cc.coom.main.viewmodel

import com.myh.cc.base.BaseModel
import com.myh.cc.coom.main.net.MainControlImpl
import com.myh.cc.databinding.ActivityPlayBinding
import com.myh.cc.util.ConstantUtil

/**
 * des    ：
 * create    ：  mayahao.
 * date   ：  2018/1/20.   ：
 */
class PlayModel: BaseModel<ActivityPlayBinding,MainControlImpl>() {


    override fun onBeforeRequest(tag: Int) {

    }

    override fun onSuccess(data: Any, tag: Int) {


    }

    override fun onError(errorMag: String, tag: Int) {

    }

    fun getPlayKey(mid: String){


        val  map = HashMap<String,String>()
        map.put("format","json")
        map.put("notice","0")
        map.put("platform","yqq")
        map.put("needNewCode","0")
        map.put("cid","205361747")
        map.put("uin","0")
        map.put("songmid",mid)
        map.put("filename","C400" + mid + ".m4a")
        map.put("guid","3655047200")



        mControl.getPlatKey(this,"",map,ConstantUtil.requestTagOne)
    }



}